{extend name="public:layout" /}
{block name="title"}字典分类列表{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('Dict/index')}"> 字典管理</a></li>
                <li class="active">字典分类管理</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <div class="pull-left">
                    <a class="btn btn-primary" href="{:url('add')}">
                        <i class="fa fa-plus"></i>&nbsp;字典分类
                    </a>
                </div>
                <div class="clearfix"></div>
            </div>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th width="150">字典分类标识#</th>
                    <th>字典分类名称</th>
                    <th>是否允许删除</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo.type_id}</td>
                    <td>{$vo.type_name}</td>
                    <td>{$vo.is_fixed_text}</td>
                    <td>
                        <a href="{:url('edit',['type_id'=>$vo['type_id']])}">编辑</a>
                        {eq name="vo.is_fixed" value="0"}
                        <a href="javascript:;" onclick="doAction(this);"
                           data-msg="确认删除吗？" data-url="{:url('del')}"
                           data-params="type_id={$vo.type_id}">删除</a>
                        {/eq}
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}